import request from '@/utils/request'
const basePath = '/supervisor/loan-product-info'
// 查询角色列表
export function getTableList(query) {
  return request({
    url: basePath,
    method: 'get',
    params: query,
  })
}

// 新增
export function addItem(data) {
  return request({
    url: basePath,
    method: 'post',
    data: data,
  })
}

// 修改
export function updateInfo(data) {
  return request({
    url: basePath,
    method: 'put',
    data: data,
  })
}

// 删除
export function deleteItem(roleId) {
  return request({
    url: basePath + '/' + roleId,
    method: 'delete',
  })
}

export function getLoanListNotPage(params) {
  return request({
    url: basePath + '/getLoanList',
    method: 'get',
    params,
  })
}

export function getPurchaseList(params) {
  return request({
    url: '/purchase-company/customer/list',
    method: 'get',
    params,
  })
}
